import request from '@/utils/request'

// 查询城市信息列表
export function listSysCity(query) {
  return request({
    url: '/system/sysCity/list',
    method: 'get',
    params: query
  })
}

// 查询城市信息详细
export function getSysCity(id) {
  return request({
    url: '/system/sysCity/' + id,
    method: 'get'
  })
}

// 新增城市信息
export function addSysCity(data) {
  return request({
    url: '/system/sysCity',
    method: 'post',
    data: data
  })
}

// 修改城市信息
export function updateSysCity(data) {
  return request({
    url: '/system/sysCity',
    method: 'put',
    data: data
  })
}

// 删除城市信息
export function delSysCity(id) {
  return request({
    url: '/system/sysCity/' + id,
    method: 'delete'
  })
}

export function getCityList(query) {
  return request({
    url: '/system/sysCity/getCityList',
    method: 'get',
    params: query
  })
}

export function getAreaList(query) {
  return request({
    url: '/system/sysCity/getAreaList',
    method: 'get',
    params: query
  })
}

export function getAreaCode(query) {
  return request({
    url: '/system/sysCity/getAreaCode',
    method: 'get',
    params: query
  })
}

export function getStatisticsList(query) {
  return request({
    url: '/system/sysCity/getStatisticsList',
    method: 'get',
    params: query
  })
}